package com.ruoyi.crm.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目预算成本费用支出对象 crm_order_register_details
 *
 * @author yanwenliang
 * @date 2024-11-09
 */
@Data
@TableName("crm_order_register_details")
@AllArgsConstructor
@NoArgsConstructor
public class CrmOrderRegisterDetails {
    private static final long serialVersionUID = 1L;

    /** 项目预算成本费用支出详情id */
    @TableId(type = IdType.ASSIGN_ID)
    private String detailsId;

    /**
     * 费用类型
     */
    private String detailsType;

    /** 项目预算成本费用支出详情名称 */
    @Excel(name = "项目预算成本费用支出详情名称")
    private String detailsName;

    /**
     * 项目预算成本费用支出详情描述
     */
    private String detailsDesc;

    /** 项目预算成本费用支出详情金额 */
    @Excel(name = "项目预算成本费用支出详情金额")
    private BigDecimal detailsAmount;

    /** 是否可编辑 */
    @Excel(name = "是否可编辑")
    private String flag;

    /** 是否无 */
    @Excel(name = "是否无")
    private String isRequired;

    /** 项目立项id */
    @Excel(name = "项目立项id")
    private String orderRegisterId;

    /** 归属人 */
    @Excel(name = "归属人")
    private String userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String remark;

    public CrmOrderRegisterDetails(String detailsType, String detailsName, BigDecimal detailsAmount) {
        this.detailsType = detailsType;
        this.detailsName = detailsName;
        this.detailsAmount = detailsAmount;
    }
}
